<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页面</title>
    <link rel="stylesheet" href="css/bootstrap.css">
    <script src="js/jquery.js"></script>
    <script src="js/bootstrap.js"></script>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
        }

        /* 表单样式，也就是登录卡片的样式 */
        form {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            /* 这里添加了浅色阴影效果，水平偏移0，垂直偏移4px，模糊半径8px，颜色透明度为0.1的黑色 */
            width: 500px;
            /* 设定登录卡片的宽度 */
            height: 500px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            /* 让标签文字加粗，更清晰醒目 */
            color: #333;
            /* 设置标签文字颜色为深灰色 */
        }

        input {
            width: 100%;
            padding: 10px;
            margin-bottom: 20px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
            /* 适当增大输入框内文字字号 */
        }

       .error-msg {
            color: red;
            font-size: 14px;
            margin-top: 5px;
        }

        .form-group {
            padding: 15px;
        }
    </style>
    <link rel="stylesheet" href="css/bootstrap.css">
    <script src="js/jquery.js"></script>
    <script src="js/bootstrap.js"></script>
</head>

<body>
    <form action="logincheck.jsp" method="post">
        <div style="text-align: center;">
            <img src="image/logo.png" width="200px" height="auto" />
        </div>
        <div class="form-group">
            <label for="username">用户名：</label>
            <input type="text" id="username" name="username" placeholder="请输入用户名" required>
        </div>
        <div class="form-group">
            <label for="password1">密码：</label>
            <input type="password" id="password1" name="password" placeholder="请输入密码" required>
        </div>
        <div style="padding: 40px; text-align: center;">
            <input type="submit" class="btn btn-success" href="user/conversation.html" value="登录"></input>
        </div>
    </form>
</body>

</html>